package customExceptions;


/**
 * Exception class that signals concurrency problems where users lose certain rights.
 * 
 * @author ciobanm
 *
 */
public class UserLostRightsException extends ConcurencyException {
	
	private Integer type; 

	/**
	 * 
	 */
	private static final long serialVersionUID = -3549862730343484846L;

	public static final int USER_IS_INVALIDATED = 1;
	public static final int USER_NO_LONGER_SUPERVISOR = 2;
	public static final int USER_HAS_NO_RIGHTS_TO_VIEW_REPOSITORY = 3;

	
	public UserLostRightsException(Integer type) {
		super();
		this.type = type;
	}

	/**
	 * Getter for the 'type' field.
	 * 
	 * @return The type of the exception.
	 */
	public Integer getType() {
		return type;
	}
	
}
